Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / CanvasShape Class / AddPicture Method / AddPicture(Byte[],String,Single,Single) Method
The image data representing the picture.
The content type of the image data.
The picture's width, in points.
The picture's height, in points.

In This Topic
    AddPicture(Byte[],String,Single,Single) Method
    In This Topic
    Adds a new Picture to the end of the canvas shape.
    Syntax
    'Declaration
     
    Public Overloads Function AddPicture( _
       ByVal imageBytes() As System.Byte, _
       ByVal contentType As System.String, _
       ByVal width As System.Single, _
       ByVal height As System.Single _
    ) As Picture
    public Picture AddPicture( 
       System.byte[] imageBytes,
       System.string contentType,
       System.float width,
       System.float height
    )

    Parameters

    imageBytes
    The image data representing the picture.
    contentType
    The content type of the image data.
    width
    The picture's width, in points.
    height
    The picture's height, in points.

    Return Value

    The added Picture.
    See Also